<template>
  <div>
    <Header />
    <div class="back">
      <div class="container">
        <Nested :list='nestedList' />
        <div class="content">
          <div class="hot-today flex">
            <div>
              <div class="flex">
                <div class="box-title">
                  <div class="vertical-line vertical-line-black" />
                  <span class="title-span">今日热点</span>
                </div>
              </div>
              <div class="content-box flex">
                <div class="box-left">
                  <img src="/images/newsToday1.png" style="margin-bottom: 10px;" alt="今日热点">
                  <div class="flex">
                    <img src="/images/newsToday2.png" alt="今日热点">
                    <img src="/images/newsToday3.png" alt="今日热点">
                  </div>
                </div>
                <div class="box-right">
                  <h4 class="title">
                    天津旅游景点介绍 天津十大旅游景点
                  </h4>
                  <div class="text-box flex" v-for="item in introduceList" :key="item.id">
                    <div class="text">{{ item.title }}</div>
                    <div class="time">{{ item.time }}</div>
                  </div>
                  <h4 class="title" style="margin-top: 10px;">
                    天津旅游景点介绍 天津十大旅游景点
                  </h4>
                  <div class="text-box flex" v-for="item in introduceList" :key="item.id">
                    <div class="text">{{ item.title }}</div>
                    <div class="time">{{ item.time }}</div>
                  </div>
                </div>
              </div>
            </div>
            <SingleList class="popular" title="热门推荐" :list="popularList" />
          </div>
        </div>
        <div class="content" style="display: block;">
          <div class="header flex">
            <div class="title">全国中考</div>
            <div class="more" @click="showMore">
              更多>
            </div>
          </div>
          <div class="cont flex">
            <div class="box-left">
              <div class="box-top flex">
                <img src="/images/newsPic.png" alt="">
                <div class="box-top-info">
                  <div class="box-info-titile">
                    湘潭有技校吗？技校的升学班学什么？
                  </div>
                  <div class="box-info-content">
                    2021旅游英语专业就业前景及就业方向旅游英语专业主要学旅游英语、饭店英语、导游英语、导游业务、旅行社经营与管理、口笔译实务、客源国概况与涉外服务礼仪等，那么旅游英语专业就业前景怎么样？旅游英语专业就业前景很好，具有广阔的市场需求空间。毕业生既可......
                  </div>
                </div>
              </div>
              <div class="box-bottom flex">
                <div class="text-box flex double" v-for="item in popularList" :key="item.id">
                  <div class="text2">{{ item.title }}</div>
                  <div class="time">{{ item.time }}</div>
                </div>
              </div>
            </div>
            <SingleList class="popular" title="热点资讯" :list="popularList" />
          </div>
        </div>

        <div class="content" style="display: block;">
          <div class="header flex">
            <div class="title">全国高考</div>
            <div class="more" @click="showMore">
              更多>
            </div>
          </div>
          <div class="cont flex">
            <div class="box-left">
              <div class="box-top flex">
                <img src="/images/newsPic.png" alt="">
                <div class="box-top-info">
                  <div class="box-info-titile">
                    湘潭有技校吗？技校的升学班学什么？
                  </div>
                  <div class="box-info-content">
                    2021旅游英语专业就业前景及就业方向旅游英语专业主要学旅游英语、饭店英语、导游英语、导游业务、旅行社经营与管理、口笔译实务、客源国概况与涉外服务礼仪等，那么旅游英语专业就业前景怎么样？旅游英语专业就业前景很好，具有广阔的市场需求空间。毕业生既可......
                  </div>
                </div>
              </div>
              <div class="box-bottom flex">
                <div class="text-box flex double" v-for="item in popularList" :key="item.id">
                  <div class="text2">{{ item.title }}</div>
                  <div class="time">{{ item.time }}</div>
                </div>
              </div>
            </div>
            <SingleList class="popular" title="热点资讯" :list="popularList" />
          </div>
        </div>

        <div class="content" style="display: block;">
          <div class="header flex">
            <div class="title">全国高校</div>
            <div class="more" @click="showMore">
              更多>
            </div>
          </div>
          <div class="cont flex">
            <div class="box-left">
              <div class="box-top flex">
                <img src="/images/newsPic.png" alt="">
                <div class="box-top-info">
                  <div class="box-info-titile">
                    湘潭有技校吗？技校的升学班学什么？
                  </div>
                  <div class="box-info-content">
                    2021旅游英语专业就业前景及就业方向旅游英语专业主要学旅游英语、饭店英语、导游英语、导游业务、旅行社经营与管理、口笔译实务、客源国概况与涉外服务礼仪等，那么旅游英语专业就业前景怎么样？旅游英语专业就业前景很好，具有广阔的市场需求空间。毕业生既可......
                  </div>
                </div>
              </div>
              <div class="box-bottom flex">
                <div class="text-box flex double" v-for="item in popularList" :key="item.id">
                  <div class="text2">{{ item.title }}</div>
                  <div class="time">{{ item.time }}</div>
                </div>
              </div>
            </div>
            <SingleList class="popular" title="热点资讯" :list="popularList" />
          </div>
        </div>

        <div class="content" style="display: block;">
          <div class="header flex">
            <div class="title">高考预测</div>
            <div class="more" @click="showMore">
              更多>
            </div>
          </div>
          <div class="cont flex">
            <div class="box-left">
              <div class="box-top flex">
                <img src="/images/newsPic.png" alt="">
                <div class="box-top-info">
                  <div class="box-info-titile">
                    湘潭有技校吗？技校的升学班学什么？
                  </div>
                  <div class="box-info-content">
                    2021旅游英语专业就业前景及就业方向旅游英语专业主要学旅游英语、饭店英语、导游英语、导游业务、旅行社经营与管理、口笔译实务、客源国概况与涉外服务礼仪等，那么旅游英语专业就业前景怎么样？旅游英语专业就业前景很好，具有广阔的市场需求空间。毕业生既可......
                  </div>
                </div>
              </div>
              <div class="box-bottom flex">
                <div class="text-box flex double" v-for="item in popularList" :key="item.id">
                  <div class="text2">{{ item.title }}</div>
                  <div class="time">{{ item.time }}</div>
                </div>
              </div>
            </div>
            <SingleList class="popular" title="热点资讯" :list="popularList" />
          </div>
        </div>
      </div>
      <Footer />
    </div>
  </div>
</template>

<script lang="ts" setup>
import Header from '../../components/header/index.vue'
import Nested from '@/components/nested/index.vue'
import Footer from '@/components/footer/index.vue'
import { ref } from 'vue'
import { NestedType } from '@/components/nested/nested';
import SingleList from '@/components/news/singleList/index.vue'
import { popularList, introduceList } from './data'





const nestedList = ref<NestedType[]>([{ name: '首页', path: '/' }, { name: '高考资讯', path: '/news' }])

const showMore = () => {
  window.location.href = '/news/newsList'
}

</script>

<style lang="less" scoped>
@import './index.less';
</style>
